#include "datavocabulary.h"
#include <QVariant>


int Vocabulary::id() const
{
    return m_id;
}

void Vocabulary::setId(int newId)
{
    m_id = newId;
}

const std::string &Vocabulary::vocabularyName() const
{
    return m_vocabularyName;
}

void Vocabulary::setVocabularyName(const std::string &newVocabularyName)
{
    m_vocabularyName = newVocabularyName;
}

int Vocabulary::vocabularySize() const
{
    return m_vocabularySize;
}

void Vocabulary::setVocabularySize(int newVocabularySize)
{
    m_vocabularySize = newVocabularySize;
}
void Vocabulary::parseRecord(const QSqlRecord& record)
{
    this->setId(record.value(0).toInt());
    this->setVocabularyName(record.value(1).toString().toStdString());
    this->setVocabularySize(record.value(2).toInt());
}
